import request from '@/utils/request.ts';

//登录接口
export function login(data) {
	return request({
		url: '/loginteacher',
		method: 'post',
		params: data
	})
}
//退出注销接口
export function logout(data) {
	return request({
		url: '/logout',
		method: 'get',
		data
	})
}

//获取用户信息接口
export function getUserInfo(token) {
	return request({
		url: '/detailsUser',
		method: 'get',
		params: {
			token
		}
	})
}